// 本模块准备采用 nanoid 来随机生成惟一的 ID 和 盐值

const nanoid = require( 'nanoid' );

const alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ;

const idGenerator = nanoid.customAlphabet( alphabet , 16 );

const saltGenerator = nanoid.customAlphabet( alphabet , 8 );

const uid = { idGenerator , saltGenerator }

module.exports = uid ;